package com.wxzz.elearing.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxzz.elearing.course.dto.CurriculumByCategory4trainDto;
import com.wxzz.elearing.course.dto.WxUserCurriculumDto;
import com.wxzz.elearing.course.entity.Curriculum;
import com.wxzz.elearing.course.entity.WxUserCurriculum;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 我的课程
 * 内部课程（企业自己发布用户看过的课程）
 * 外部课程（自己购买的和企业购买的平台课程，这里的平台课程是看过的) Mapper 接口
 * </p>
 *
 * @author
 * @since 2021-03-15
 */
public interface WxUserCurriculumMapper extends BaseMapper<WxUserCurriculum> {

    List<Curriculum> listCurriculumByWxUserId(@Param("wxUserId") Long wxUserId, @Param("wxUserCurriculumDto") WxUserCurriculumDto wxUserCurriculumDto);

    /**
     * 根据讲师id查询出参与人
     *
     * @param docentId
     * @return
     */
    List<WxUserCurriculum> listWxUserCurriculumByDocent(@Param("docentId") Long docentId, @Param("wxUserIds") List wxUserIds);

    /**
     * 查询已学习的培训课程
     *
     * @param curriculumByCategory4trainDto
     * @return
     */
    List<Curriculum> listCurriculumByCategory4train(@Param("enterpriseId") Long enterpriseId,@Param("wxUserId")Long wxUserId, @Param("curriculumByCategory4trainDto") CurriculumByCategory4trainDto curriculumByCategory4trainDto);
}
